import request from '@/utils/request';

/**
 * 用户消息私信表
 *
 * @author developer
 * @email developer@163.com
 * @date 2025-05-20 18:48:09
 */
export function useTbMessageApi() {
	return {
		list: (params) => {
		return request({
			url: '/tb/message/list',
			method: 'get',
			params
		});
},
	add: (params) => {
		return request({
							url: '/tb/message',
				method: 'put',
						data: params
		});
	},
	update: (params) => {
		return request({
							url: '/tb/message',
				method: 'put',
						data: params
		});
	},
	delete: (params) => {
		return request({
							url: '/tb/message',
				method: 'delete',
						data: params
		});
	}
};
}
